package com.capa.network

import com.capa.BuildConfig
import com.capa.model.DeepSeekRequest
import com.capa.model.DeepSeekResponse
import com.capa.model.PhoneLoginRequest
import retrofit2.http.Body
import retrofit2.http.GET
import retrofit2.http.Header
import retrofit2.http.Headers
import retrofit2.http.POST
import retrofit2.http.Path

interface ApiService {

    /**
     * 获取手机验证码
     */
    @GET(ApiAddress.GETCAPTCHA)
    suspend fun getCaptcha(
        @Path("mobile") mobile:String
    ): BaseResponse<Any>

    /**
     * 手机号登录
     */
    @POST(ApiAddress.PHONELOGIN)
    suspend fun phoneLogin(
        @Body request: PhoneLoginRequest
    ): BaseResponse<Any>

    @POST("chat/completions")
    @Headers("Content-Type: application/json")
    suspend fun requestDeepSeek(
        @Body request: DeepSeekRequest,
        @Header("Authorization") auth: String = "Bearer ${BuildConfig.DEEPSEEK_API_KEY}"
    ): DeepSeekResponse

    /**
     * post body
     */
//    @POST(ApiAddress.LOGIN)
//    suspend fun loginBody(@Body requestBody: RequestBody): BaseResponse<Any>
}


